home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / sys / dos / djgpp / cf / install.in < prev    next >
Encoding:
Text File  |  1994-08-11  |  3.1 KB  |  86 lines

  1. # -----------------------------------------------------------------------
  2. # $Id: install.in,v 1.2 1994/08/10 20:23:45 mjl Exp $
  3. #
  4. # Maurice LeBrun
  5. # IFS, University of Texas at Austin
  6. # 14-Jul-1994
  7. #
  8. # Make assignments and targets for installation under Unix.
  9. #
  10. # It is recommended that you use a dedicated directory such as
  11. # /usr/local/plplot (read the FAQ on this topic).  The install directory
  12. # will be created if necessary, as will subdirectories bin, doc, examples,
  13. # include, lib, man (eventually), and tcl.
  14. #
  15. # Notes: 
  16. #    if Tk support is not included, TK_INSTALL will be null.
  17. #    if Tcl support is not included, TCL_INSTALL will be null.
  18. #
  19. # -----------------------------------------------------------------------
  20.  
  21. install: install_lib install_utils $(TCL_INSTALL) $(TK_INSTALL) install_demos
  22.  
  23. install_lib:
  24.     -if not exist $(INCLUDE_DIR) mkdir $(INCLUDE_DIR)
  25.     -if not exist $(LIB_DIR) mkdir $(LIB_DIR)
  26.     -if not exist $(DOC_DIR) mkdir $(DOC_DIR)
  27.     -if not exist $(BIN_DIR) mkdir $(BIN_DIR)
  28.     -if not exist $(INFO_DIR) mkdir $(INFO_DIR)
  29.     -copy ..\..\..\..\lib\libplplt.a $(LIB_DIR)
  30.     -copy ..\..\..\..\lib\*.fnt $(LIB_DIR)
  31.     -copy ..\..\..\..\lib\*.map $(LIB_DIR)
  32. #    -echo $(LIB_DIR)
  33. #    -echo $(LIB_DIR)\libplplt.a
  34.     -$(RANLIB) $(LIB_DIR2)/libplplt.a
  35. #    -cd ..\..\..\..
  36. #    -for %i in (README README.1st Changes.log COPYRIGHTS FAQ ToDo mklinks) do copy %i $(DOC_DIR)
  37.     copy ..\..\..\..\*.*  $(DOC_DIR)
  38.     -if not exist $(DOC_DIR)\README.local do copy README.local $(DOC_DIR)
  39.     -copy ..\..\..\..\doc\*.info $(INFO_DIR)
  40.     -copy ..\..\..\..\scripts\pl*.* $(BIN_DIR)
  41. #    -cd include
  42. #    -for %i in (plplotP.h plplot.h plplotX.h plplotTK.h plevent.h plstream.h pdf.h tclMatrix.h) do copy %i $(INCLUDE_DIR)
  43.     copy ..\..\..\..\include\*.h $(INCLUDE_DIR)
  44.  
  45. install_demos:
  46.     -if not exist $(DEMOS_DIR) mkdir $(DEMOS_DIR)
  47.     -if not exist $(DEMOS_DIR)\C mkdir $(DEMOS_DIR)\C
  48.     -if not exist $(DEMOS_DIR)\f77 mkdir $(DEMOS_DIR)\f77
  49.     -if not exist $(DEMOS_DIR)\tcl mkdir $(DEMOS_DIR)\tcl
  50.     -if not exist $(DEMOS_DIR)\tk mkdir $(DEMOS_DIR)\tk
  51.     -copy Makedemo $(DEMOS_DIR)\Makefile
  52.     -copy $(DEMOS_DIR)\Makefile $(DEMOS_DIR)\C
  53.     -copy $(DEMOS_DIR)\Makefile $(DEMOS_DIR)\f77
  54.     -copy $(DEMOS_DIR)\Makefile $(DEMOS_DIR)\tk
  55.     -copy ..\..\..\..\examples\C\*.* $(DEMOS_DIR)\C
  56.     -copy ..\..\..\..\examples\f77\*.* $(DEMOS_DIR)\f77
  57.     -copy ..\..\..\..\examples\tcl\*.* $(DEMOS_DIR)\tcl
  58.     -copy ..\..\..\..\examples\tk\*.* $(DEMOS_DIR)\tk
  59.  
  60. install_utils:
  61.     $(LDC) $(LDC_FLAGS) plrender$O $(LIB_INSTALL) \
  62.         -o plrender$E $(LDC_LIBS)
  63.     $(LDC) $(LDC_FLAGS) pltek$O $(LIB_INSTALL) \
  64.         -o pltek$E $(LDC_LIBS)
  65.     -strip plrender
  66.     coff2exe plrender
  67.     -strip pltek
  68.     coff2exe pltek
  69.     -copy plrender.exe $(BIN_DIR)
  70.     -copy pltek.exe $(BIN_DIR)
  71.  
  72. install_tcl:
  73.     $(LDC) $(LDC_FLAGS) pltcl$O $(LIB_INSTALL) \
  74.         -o pltcl$E $(LDC_LIBS)
  75.     -strip pltcl$E
  76.     -cp pltcl$E $(BIN_DIR)
  77.  
  78. install_tk:
  79.     -if [ ! -d $(TCL_DIR) ] ; then mkdir -p $(TCL_DIR); fi
  80.     $(LDC) $(LDC_FLAGS) plserver$O $(LIB_INSTALL) \
  81.         -o plserver$E $(LDC_LIBS)
  82.     -strip plserver$E
  83.     -cp plserver$E $(BIN_DIR)
  84.     -cd ..\drivers\tk; cp *.tcl *.pal tclIndex $(TCL_DIR)
  85.  
  86.